#include "stdio.h"
#include "string.h"
int shu[20001];

main()
{
    int i,j,t;
    memset(shu,0,sizeof(shu));
    for (i=1;i<=10000;i++)
    {
        j=i;
        t=i;
        while (t!=0) 
        {
            j+=t%10;
            t/=10;
        }    
        shu[j]=1; 
        
    }
    
    for (i=1;i<=10000;i++)
        if (shu[i]==0) printf("%d\n",i);
    
    return 0;    
}